package entity

//用户表 sys_user

import "gin/common/db/config"

type SysUserEntity struct {
	UserId   int64    `gorm:"column:user_id"`
	UserName string `gorm:"column:UserName"`
	NickName string `gorm:"column:nick_name"`
	Password string `gorm:"column:password"`
	DeptId   int    `gorm:"column:dept_id"`

	//SysDept     []*MetaVo  `gorm:"-" json:"dept"`


	//vo 字段开始
	//用户权限信息 集合
	Permissions map[string]string

	Token string
}

func (SysUserEntity) TableName() string {
	return "sys_user"
}

func init() {
	config.GormDb.AutoMigrate(&SysUserEntity{})
}
